import Router from 'koa-router'
import AdminComtroller from '@/api/AdminController'

const router = new Router()

router.prefix('/admin')
router.get('/getAllcomm', AdminComtroller.getUserComms)
router.get('/delcomm', AdminComtroller.delComm)
router.get('/getuser', AdminComtroller.getUser)
router.get('/delUser', AdminComtroller.delUser)
router.get('/serch', AdminComtroller.getSerch)
router.post('/savEditorComm', AdminComtroller.save)
router.get('/getstat', AdminComtroller.getStatData)

export default router
